//
//  CZheadpingLunView.swift
//  GZWeibo007
//
//  Created by 汪明 on 15/12/24.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class CZheadpingLunView: UIView {


    var statu: CZStatus? {
    
        didSet{
            
            
            commentsButton.setTitle("评论 \(statu!.comments_count)", forState: .Normal)
          
        
        }
      
    }
    
    override init(frame: CGRect) {
        
        super.init(frame: frame)
        preapreUI()
        
    }
    
    func preapreUI(){
    
        
        addSubview(commentsButton)
        
       
        commentsButton.ff_AlignInner(type: ff_AlignType.CenterLeft, referView: self, size: CGSize(width: 70, height: 44), offset: CGPoint(x: 0, y: 0))
    
    
    }
    
    private var commentsButton: UIButton = {

      let but = UIButton()
       
      but.titleLabel?.font = UIFont.systemFontOfSize(11)
      but.setTitleColor(UIColor.lightGrayColor(), forState: .Normal)
      but.setTitleColor(UIColor.darkGrayColor(), forState: .Highlighted)
        
      return but
    }()


    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
